package org.yzl.designPatterns.strategy.impl;

import org.yzl.designPatterns.strategy.AbstractStrategy;
import org.yzl.designPatterns.strategy.IStrategy;

public class StrategyMinusImpl extends AbstractStrategy implements IStrategy {
    @Override
    public int calculate(String exp) {
        int[] result = split(exp,"-");
        return result[0]-result[1];
    }
}
